home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / WWIV Mods / P-MAN06.MOD < prev    next >
Encoding:
Text File  |  1994-08-16  |  9.3 KB  |  216 lines

  1. ┌──────────────────────────────────────────────────────────────────────────┐
  2. │ Mod Name     » P-MAN06.MOD or ANSLOGON.MOD    Author » Piano Man #32     │█
  3. │ WWiV Version » 4.23 (should work on 4.2x)     <Remote> SySop Utopia BBS  │█
  4. │ Difficulty   » ███▒▒▒▒▒▒▒                              410-557-0868      │█
  5. │ Mod Version  » 1.00ß              32@2    LiveNET   32@13034 RenegadeNET │█
  6. │ Date Written » 8/7/94             32@4108 PlaNET    32@17003 ChessNET    │█
  7. │                                                                          │█
  8. │ Description  » Explains how to make your own ANSI logon screen.          │█
  9. └──────────────────────────────────────────────────────────────────────────┘█
  10.  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  11.      UtopiaHeader, (c) 1994          Piano Man / Ford Perfect
  12.  
  13. [*------------------------------Disclaimer---------------------------------*]
  14.  
  15.      Although this mod has been throughly tested on my heavily modded 4.23
  16.   source, there is no guarantee made or implied that this will work. I am not
  17.   responsible for any damage caused directly or indirectly by this mod.
  18.      Feel free to distribute this, and use any of the ideas found in this mod
  19.   it is Freeware. I just ask that you tell me if your going to re-release it
  20.   with any changes. Although you may do this to my parts of the mod, there
  21.   are some parts in here that are copyrighted by WWIV Software Services, and
  22.   cannot be used by anybody without the consent of WWIV Software Services.
  23.   Failure to follow this is punishable by law.
  24.  
  25. [*--------------------------Extended Description---------------------------*]
  26.  
  27.      There are a lot of mods out there for ANSI logon screens, but if you
  28.   wanted to be origional, this mod will tell you how to make your own. Sure,
  29.   I'll include my logon ansi as an example, but this will tell you, step by
  30.   step, how to make your own.
  31.  
  32. [*--------------------------------Legend-----------------------------------*]
  33.                  ┌────────────────┐
  34.                  │ Exhisting - == │
  35.                  │ Add Line  - ++ │
  36.                  │ Mod Line  - =* │
  37.                  │ Del Line  - -- │
  38.                  └────────────────┘
  39. [*----------------------------------Mod------------------------------------*]
  40.  
  41.     Step -1- : 'Why backup your source? it'll be safe with me, muahahah ;)'
  42.  
  43.     Step -2- : First things first, Pull out your favorite ANSI maker (I
  44.            use TheDraw), and be CREATIVE! Make a logon ANSI, and make
  45.            sure you have room set aside for Name, Password, Phone, and
  46.            the system password. You need:
  47.  
  48.             Name/Handle : 35 spaces
  49.             Password    : 8 spaces
  50.             Phone       : 4 spaces
  51.             System Pass.: 8 spaces
  52.  
  53.            the rest of the space is YOURS. As an example, the one I
  54.            use is included at the end of the file, It's UUENCODED.
  55.            You do not, however, want to use ALL 25 lines available,
  56.            because it will very easily scroll off the screen,
  57.            especially people who have only 24 line displays. A good
  58.            rule is to keep it under 20 lines.
  59.  
  60.     Step -3- : Save the ANSI, but don't exit the editor just yet.
  61.            get the starting x and y coordinates of all your 'fields'
  62.            (spaces you set aside for name and password). In TheDraw,
  63.            place the cursor over the first space, and read the numbers
  64.            from the bottom of the screen, other editors, you're on your
  65.            own, sorry <g>. Write those down for later reference.
  66.  
  67.     Step -4- : Now, Exit the ANSI editor, and open up your file in the
  68.            MS-DOS editor (type "edit <ansi file name here>").
  69.            Looking at the file, you should see all sorts of ANSI codes,
  70.            but go to the end of the file. You will see there are a few
  71.            blank lines, and then a '' or something like that.
  72.            DELETE the blank lines between the rest of the ANSI and
  73.            this.  This will prevent the ANSI from scrolling off the
  74.            screen. Save the new ANSI and move it to your GFILES dir.
  75.  
  76.     Step -5- : Now for the source code part. Open LILO.C, and in function
  77.            'void getuser(void)' look for the following and modify
  78.            where indicated.
  79.  
  80. ==      pl(get_string(355));
  81. ++    ans=check_ansi();
  82. ++    if (ans==0)
  83. ==      outstr(get_string(356)); /* DON'T change the NN: prompt. */
  84. ++    else {
  85. ++      printfile("utopiaon.ans");   // <- Change UTOPIAON.ANS to your ANS file
  86. ++      npr("\033[5;12H");        // <- Change 5 and 12 to the x-y coordinates
  87. ++    }                           // or your Name/Handle field.
  88. ==    input(s,30);
  89. ==    usernum=finduser(s);
  90. ==    if ((net_only) && (usernum!=-2))
  91.  
  92. and further down...
  93.  
  94. ==      ok=1;
  95. ==      actsl = syscfg.newusersl;
  96. ==      topscreen();
  97. ++      if (ans==0)
  98. ==        outstr(get_string(357));
  99. ++      else
  100. ++        npr("\033[5;61H");      // <- Change 5 and 61 to the coordinates of
  101. ==      echo=0;                   // your Password field.
  102. ==      input(s,8);
  103. ==      if (strcmp(s,thisuser.pw)!=0)
  104.  
  105. and further down....
  106.  
  107. ==   if (((syscfg.sysconfig & sysconfig_free_phone)==0)) {
  108. ==      if (usa_phone_convention(&thisuser) || !thisuser.country[0]) {
  109. ++        if (ans==0)
  110. ==           outstr(get_string(358));
  111. ++        else
  112. ++           npr("\033[7;37H");       //change to Phone Coordinates
  113. ==        echo=0;
  114. ==        input(s2,4);
  115. ==        if (strcmp(s2,&thisuser.phone[8])!=0) {
  116.  
  117. and finally...
  118.  
  119. ==      }
  120. ==      if ((thisuser.sl==255) && (incom) && (ok)) {
  121. ++      if (ans==0)
  122. ==         outstr(get_string(616));
  123. ++      else
  124. ++         npr("\033[7;66H");    // Change to system Password Coordinates
  125. ==      echo=0;
  126. ==      input(s4,20);
  127.  
  128. and if you want to add a little flare...
  129.  
  130. ==      input(s4,20);
  131. ==      if (strcmp(s4,syscfg.systempw)!=0)
  132. ==        ok=0;
  133. ==      }
  134. ++      if ((thisuser.sl!=255) && (ans>0)) {
  135. ++      echo=1;
  136. ++      npr("\033[7;66HDNO NEED!");      // Change to Sys Passowrd coordinat.
  137. ++      }
  138. ==      echo=1;
  139. ++      outchr(12);
  140. ==      nl();
  141. ==      nl();
  142.  
  143.     Step -6- : That should do it, Save and Re-Compile. If it doesn't
  144.            work right, toy around with it a little, after a little
  145.            work, it normally turns out. If your users complain of
  146.            'X's all over the place, fool around with the placement
  147.            of the 'echo=0' and 'echo=1' statements. I'll be glad to
  148.            help you if you have any problems. OHH! it may not look
  149.            aligned right locally because of the blue topscreen info.
  150.            Don't worry, as long as it works out remotely, that's all
  151.            that matters.
  152.  
  153.     Note     : If you wanted to use my ANSI, keep the coordinates in the
  154.            source the same, and then UUDECODE the following chunk of
  155.            code. Then copy the output file, UTOPIAON.ANS, into your
  156.            GFILES directory. Run, and it should work. But i encourage
  157.            you to make your own.
  158.  
  159. [*-------------------------------UTOPIAON.ANS------------------------------*]
  160.  
  161. section 1 of uuencode 5.15 of file utopiaon.ans    by R.E.M.
  162.  
  163. begin 644 utopiaon.ans
  164. M&ULT,&T;6S)*&ULQ0QM;,#LQ.S0T;=K$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$
  165. MQ,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$
  166. MQ,3$Q,3$Q,2_&ULT,&T-"B`;6S0T;;,@("`@("`;6S(P0QM;-#!M5V5L8V]M
  167. M92!T;R!5=&]P:6$@0D)3&ULR,D,;6S0T;2`@("`@(+,;6S0P;0T*(!M;-#1M
  168. MP\3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$
  169. MQ,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q+0;6S0P;0T*(!M;-#1M
  170. MLR`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@
  171. M("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@(+,;6S0P;0T*(!M;-#1M
  172. MLR#<&ULT,&U.86UE.B`;6S,Q;5L;6S,S;?GY^?GY^?GY^?GY^?GY^?GY^?GY
  173. M^?GY^?GY^?GY^?GY^?GY&ULS,6U=&ULT-&T@&ULS-VW<&ULT,&U087-S=V]R
  174. M9#H@&ULS,6U;&ULS,VWY^?GY^?GY^1M;,S%M71M;-#1M("`@("`@("`;6S,W
  175. M;;,;6S0P;0T*(!M;-#1MLR#?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?
  176. MW]_?W]_?W]_?W]_?W]_?("#?W]_?W]_?W]_?W]_?W]_?W]_?WR`@("`@("`@
  177. M(+,;6S0P;0T*(!M;-#1MLR#<&ULT,&U,87-T(#0@1&EG:71S(&]F(%!H;VYE
  178. M($YU;6)E<CH@&ULS,6U;&ULS,VWY^?GY&ULS,6U=&ULT-&T@("`@(!M;,S=M
  179. MW!M;-#!M4WES=&5M(%!A<W-W;W)D.B`;6S,Q;5L;6S,S;?GY^?GY^?GY&ULS
  180. M,6U=&ULT-&T@("`;6S,W;;,;6S0P;0T*(!M;-#1MLR#?W]_?W]_?W]_?W]_?
  181. MW]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?("`@("`@W]_?W]_?W]_?W]_?W]_?
  182. MW]_?W]_?W]_?W]_?("`@(+,;6S0P;0T*(!M;-#1MLR`@("!3>5-O<',G(%=O
  183. M<F1S.B`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@
  184. M("`@("`@("`@("`@("`@(+,;6S0P;0T*(!M;-#1MLR`@(!M;,3%#&ULS-3LT
  185. M,&U.97<@57-E<G,@<&QE87-E('1Y<&4@)TYE=R<@870@=&AE($YA;64@<')O
  186. M;7!T+AM;,3!#&ULT-&T@("`@&ULS-VVS&ULT,&T-"B`;6S0T;<#$Q,3$Q,3$
  187. MQ,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$
  188. MQ,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,39&ULT,&T-"@T*&ULP;1M;,C4U1`T*
  189. `
  190. end
  191. sum -r/size 56319/1579 section (from "begin" to "end")
  192. sum -r/size 52160/1125 entire input file
  193.  
  194.  
  195. [*--------------------------------End Of Mod-------------------------------*]
  196.  
  197.      This wasn't a hard mod to do, but it IS a hard mod to explain. If
  198.      you have any questions of suggestions, tell me, and i'll be glad to
  199.      help.
  200.  
  201.     Please, let me know if you have any problems! my addresses are at the
  202.     top of the file. Call Utopia BBS, 410-557-0868, for all the latest
  203.     versions and new mods. Thank you, and be on the lookout for more mods
  204.     by me, Piano Man:
  205.  
  206.              P-MAN01.MOD : Random Internal BBS Tags
  207.              P-MAN02.MOD : Enhanced Message Reply Status
  208.              P-MAN03.MOD : Enhanced Menu Input
  209.              P-MAN04.MOD : ANSI //WAIT Mod
  210.        P-MAN05.MOD, P-MAN05B.MOD : Chains Listing w/ Popularity Meter (fixed)
  211.              P-MAN06.MOD : How to make a logon ANSI box.
  212.  
  213.                   4█0 4█0 4██0 4█0 4█0 4██0
  214.                   4██Piano Man██0
  215.                   0▀▀▀▀▀▀▀▀▀▀▀▀▀
  216.